package com.example.cloudcashierpos.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class corecmsfoodorderingtask {
    /**
     * 序号
     */
    @Id
    private long id;

    /**
     * 订单id
     */
    private long orderId;

    /**
     * 购物车id
     */
    private long detailId;

    /**
     * 做法id
     */
    private Long tastId;

    /**
     * 数量
     */
    private int quantity;

    /**
     * 加价方式0不加价；1.固定加价；2按重量加价
     */
    private int addPriceWay;

    /**
     * 单价
     */
    private double taskPrice;

    @Generated(hash = 832494479)
    public corecmsfoodorderingtask(long id, long orderId, long detailId,
            Long tastId, int quantity, int addPriceWay, double taskPrice) {
        this.id = id;
        this.orderId = orderId;
        this.detailId = detailId;
        this.tastId = tastId;
        this.quantity = quantity;
        this.addPriceWay = addPriceWay;
        this.taskPrice = taskPrice;
    }

    @Generated(hash = 2126929929)
    public corecmsfoodorderingtask() {
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getOrderId() {
        return this.orderId;
    }

    public void setOrderId(long orderId) {
        this.orderId = orderId;
    }

    public long getDetailId() {
        return this.detailId;
    }

    public void setDetailId(long detailId) {
        this.detailId = detailId;
    }

    public Long getTastId() {
        return this.tastId;
    }

    public void setTastId(Long tastId) {
        this.tastId = tastId;
    }

    public int getQuantity() {
        return this.quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getAddPriceWay() {
        return this.addPriceWay;
    }

    public void setAddPriceWay(int addPriceWay) {
        this.addPriceWay = addPriceWay;
    }

    public double getTaskPrice() {
        return this.taskPrice;
    }

    public void setTaskPrice(double taskPrice) {
        this.taskPrice = taskPrice;
    }

}
